/* 
 * File:   Xmsg.h
 * Author: minaev
 * Class for logging message from system
 * Created on 10 Октябрь 2013 г., 12:55
 */

#ifndef XMSG_H
#define	XMSG_H

#include <pthread.h>

#define MAX_LEN_PRINTF 255

class Xmsg {
private:
    static char** bufStrs;
    static pthread_mutex_t mprt;
    static char* msg;
public:
    Xmsg();
    virtual ~Xmsg();
    static void log(const char* msg);
    static void log(int n,...);
    static int printf(__const char *__restrict __format, ...);
    //static void logp(const char* msg, ...);
    //static std::ostream logs();
};

#endif	/* XMSG_H */

